<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2015-05-26 14:36
 */
interface PaymentDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return Payment 
	 */
	public function load($payment);
	/**
	 * Get all records from table
	 */
	public function all_payment($payment);
	
	public function payment_count($payment);
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	
	/**
 	 * Delete record from table
 	 * @param payment primary key
 	 */
	public function delete($payment);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param Payment payment
 	 */
	public function insert($payment);
	
	/**
 	 * Update record in table
 	 *
 	 * @param Payment payment
 	 */
	public function update($payment);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByAdminId($value);

	public function queryByPaymentGateway($value);

	public function queryByPaymentUrl($value);

	public function queryByPaymentOtherinfo($value);

	public function queryByStatus($value);

	public function queryByCreatedDate($value);

	public function queryByUpdatedDate($value);


	public function deleteByAdminId($value);

	public function deleteByPaymentGateway($value);

	public function deleteByPaymentUrl($value);

	public function deleteByPaymentOtherinfo($value);

	public function deleteByStatus($value);

	public function deleteByCreatedDate($value);

	public function deleteByUpdatedDate($value);


}
?>